package com.manpower.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.manpower.dao.dataobject.UserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author weiyong.wang
 * @since 2020-08-10
 */
public interface UserDtoMapper extends BaseMapper<UserDto> {

    List<UserDto> getUserByName(@Param("userName") String userName);

    IPage<UserDto> postUserList(Page<Map<String, Object>> p, @Param("userDto") UserDto userDto);
}
